package com.example.dmindex;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
public class DmIndexApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(DmIndexApplication.class, args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("file:D:/_文件柜/123/c123_2516/damai/" +
                        "dm-index/src/main/resources/static/");
    }
}
